var t,
  e = require("../../../../@babel/runtime/helpers/objectSpread2"),
  o = require("../../../../utils/jump"),
  r =
    (t = require("../../../../config/page")) && t.__esModule
      ? t
      : { default: t },
  s = require("@/services/list");
Component({
  data: {
    activeIndex: 0,
    subindex: -1,
    imgUrls: [
      "https://industry.map.qq.com/cloud/file/2023/06/27/1687836559780_9ydDmPzr.jpg",
      "https://industry.map.qq.com/cloud/file/2023/06/27/1687836552742_hCa17S2H.jpg",
      "https://industry.map.qq.com/cloud/file/2023/06/27/1687836568208_eeK85pf8.jpg",
    ],
    list: [],
  },
  attached: function () {
    var t = (0, s.getReList)(),
      e = this.getShowlist(t);
    this.setData({ list: e });
  },
  methods: {
    getShowlist: function (t) {
      for (var o = t, r = 0; r < t.length; r++)
        0 === r
          ? ((o[r].stepList = o[r].stepList.map(function (t, o) {
              var r = e(e({}, t), {}, { style: "" });
              return (
                0 === o
                  ? (r.style = "position: absolute;top: 300rpx;left:100rpx")
                  : 1 === o
                    ? (r.style = "position: absolute;top: 400rpx;left:260rpx")
                    : 2 === o
                      ? (r.style = "position: absolute;top: 500rpx;left:180rpx")
                      : 3 === o &&
                        (r.style =
                          "position: absolute;top: 600rpx;left:400rpx"),
                r
              );
            })),
            (o[r].lineList = [
              {
                style:
                  "position: absolute;top: 318rpx;left: 100rpx;height: 200rpx;transform: rotateZ(-58deg);",
              },
              {
                style:
                  "position: absolute;top: 420rpx;left: 270rpx;height: 130rpx;transform: rotateZ(38deg);",
              },
            ]))
          : 1 === r
            ? ((o[r].stepList = o[r].stepList.map(function (t, o) {
                var r = e(e({}, t), {}, { style: "" });
                return (
                  0 === o
                    ? (r.style = "position: absolute;top: 300rpx;left: 100rpx")
                    : 1 === o
                      ? (r.style =
                          "position: absolute;top: 400rpx;left: 220rpx")
                      : 2 === o
                        ? (r.style =
                            "position: absolute;top: 500rpx;left: 150rpx")
                        : 3 === o
                          ? (r.style =
                              "position: absolute;top: 540rpx;left: 160rpx")
                          : 4 === o &&
                            (r.style =
                              "position: absolute;top: 620rpx;left: 400rpx"),
                  r
                );
              })),
              (o[r].lineList = [
                {
                  style:
                    "position: absolute;top: 318rpx;left: 100rpx;height: 158rpx;transform: rotateZ(-50deg);",
                },
                {
                  style:
                    "position: absolute;top: 414rpx;left: 234rpx;height: 122rpx;transform: rotateZ(34deg);",
                },
              ]))
            : 2 === r &&
              ((o[r].stepList = o[r].stepList.map(function (t, o) {
                var r = e(e({}, t), {}, { style: "" });
                return (
                  0 === o
                    ? (r.style = "position: absolute;top: 300rpx;left:100rpx")
                    : 1 === o
                      ? (r.style = "position: absolute;top: 370rpx;left:210rpx")
                      : 2 === o
                        ? (r.style =
                            "position: absolute;top: 430rpx;left:290rpx")
                        : 3 === o
                          ? (r.style =
                              "position: absolute;top: 540rpx;left:380rpx")
                          : 4 === o
                            ? (r.style =
                                "position: absolute;top: 620rpx;left:180rpx")
                            : 5 === o
                              ? (r.style =
                                  "position: absolute;top: 700rpx;left:280rpx")
                              : 6 === o &&
                                (r.style =
                                  "position: absolute;top: 780rpx;left:400rpx"),
                  r
                );
              })),
              (o[r].lineList = [
                {
                  style:
                    "position: absolute;top: 320rpx;left: 113rpx;height: 134rpx;transform: rotateZ(-56deg);",
                },
                {
                  style:
                    "position: absolute;top: 390rpx;left: 223rpx;height: 106rpx;transform: rotateZ(-50deg);",
                },
                {
                  style:
                    "position: absolute;top: 450rpx;left: 300rpx;height: 146rpx;transform: rotateZ(-40deg);",
                },
                {
                  style:
                    "position: absolute;top: 560rpx;left: 400rpx;height: 220rpx;transform: rotateZ(69deg);",
                },
                {
                  style:
                    "position: absolute;top: 640rpx;left: 190rpx;height: 126rpx;transform: rotateZ(-50deg);",
                },
                {
                  style:
                    "position: absolute;top: 720rpx;left: 290rpx;height: 146rpx;transform: rotateZ(-56deg);",
                },
              ]));
      return o;
    },
    changeSwiperItem: function (t) {
      var e = t.detail.current;
      this.setData({ activeIndex: e, subindex: -1 });
    },
    checkItem: function (t) {
      var e = t.currentTarget.dataset.sindex;
      this.setData({ subindex: e });
    },
    checkSubItem: function (t) {
      var e = t.currentTarget.dataset.sindex;
      this.data.subindex !== e && this.setData({ subindex: e });
    },
    toCard: function (t) {
      var e = t.currentTarget.dataset.item;
      (0, o.navigateTo)(r.default.PAGE_APPRECIATION_COLLECTION_CARD_INDEX, {
        id: e.mid,
      });
    },
    toKnowledge: function () {
      (0, o.navigateTo)(r.default.PAGE_ZHISHI_SUBPACKEGE_HOME, {});
    },
    onTouchMove: function (t) {
      2 === t.currentTarget.dataset.index && t.preventDefault();
    },
    catchmove: function () {
      return !1;
    },
  },
});
